/*
*  CS202 - Spring 2009">
*  Professor: Dr. Michael Peterson">
*  Student: Deylo Woo (dwoo711@gmail.com) ">
*/

package project_3_v_2;

import javax.swing.*;
import java.awt.*;

/**
 * Menu panel class inherits from JPanel
 * @author drezner
 */
public class MenuPanel extends JPanel {

    JLabel _scoreLbl = new JLabel();

    /**
     * Constructor method
     */
    public MenuPanel(){

        _scoreLbl.setForeground(Color.WHITE);
        _scoreLbl.setText("This is the Label.");

        this.add(_scoreLbl);
        this.setBackground(Color.BLACK);
    }

    /**
     * Set the score on score label
     * @param score: score as string
     */
    public void setScore(String score){
        _scoreLbl.setText(score);
    }

}
